<template>
  <header>
    <van-nav-bar
      :title="titleName"
      fixed>
      <template #left>
        <van-icon @click="$router.push({name:'user'})" name="cross" color="#fff" size="20"/>
      </template>
    </van-nav-bar>
  </header>
</template>

<script>
export default {
  props: {
    bgColor:String,
    color: String
  },
  data() {
    return {
      titleName: ''
    }
  },
  created() {
    this.titleName = this.$route.meta.title
  }
}
</script>

<style>

</style>
